package lab01;

/**
 * Created by 唐苗苗 on 2017/12/30.
 */
public class Test11 {private static boolean isZhiShu(int i){
    boolean cont = true ;
    if(i==2 ){
        cont = true;
    }
    for(int a=2;a<i;a++){
        if(i%a == 0){
            cont = false;
        }
        cont = true;
    }
    return cont;
}
    public static void main(String[] args) {
        int a, k = 0;
        for (a = 2; a < 101; a++) {
            if (isZhiShu(a)) {
                k++;
                System.out.println(a + " ");
                if (k % 5 == 0) {
                    System.out.println("/n");
                }
            }
        }

    }
}
